/*
 * This class stores all the attributes of a banner i.e., id, name, height, width
 * location, etc. It is meant to be used by the adsmanager class
 */
package pos.ads;

import pos.interfaces.Messages;

/**
 *
 * @author Parvez
 */
public class Advertisement implements Messages {
    private int bannerID;
    private String name;
    private int weightdValue;
    private String locatoin;
    private int height;
    private int width;

    /**
     * constructor for setting id and name only
     * 
     * @param id int value of the banner
     * @param name String name of the banner
     */
    public Advertisement(int id, String name) {
        this.setBannerID(id);
        this.setName(name);
    }
    
    /**
     * constructor for setting id, name and location
     * 
     * @param id int value of the banner
     * @param name String name of the banner
     * @param location String path to the banner on the system
     */
    public Advertisement(int id, String name, String location) {
        this.setBannerID(id);
        this.setName(name);
        this.setLocatoin(location);
    }
    
    /**
     * Get the banner id of the banner
     * 
     * @return bannerID int value of the bannger id
     */
    public int getBannerID() {
        return bannerID;
    }

    /**
     * Set the ID of the banner
     * 
     * @param bannerID the bannerID to set
     */
    public void setBannerID(int bannerID) {
        this.bannerID = bannerID;
    }

    /**
     * Get the name of the banner
     * 
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * Set the name of the banner
     * 
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * Get the weighted value of the banner
     * 
     * @return the weightdValue
     */
    public int getWeightdValue() {
        return weightdValue;
    }

    /**
     * Set the weighted value of the banner. This determines how frequently the 
     * banner will be chosen.
     * 
     * @param weightdValue the weightdValue to set
     */
    public void setWeightdValue(int weightdValue) {
        this.weightdValue = weightdValue;
    }

    /**
     * Get the location of the banner
     * 
     * @return the locatoin of the banner
     */
    public String getLocatoin() {
        return locatoin;
    }

    /**
     * Set the location of the banner
     * @param locatoin the locatoin to set
     */
    public void setLocatoin(String locatoin) {
        this.locatoin = locatoin;
    }

    /**
     * Get the height of the banner
     * 
     * @return the height
     */
    public int getHeight() {
        return height;
    }

    /**
     * @param height the height to set
     */
    public void setHeight(int height) {
        this.height = height;
    }

    /**
     * Get the width of the banner
     * 
     * @return the width
     */
    public int getWidth() {
        return width;
    }

    /**
     * Set the width of the banner
     * 
     * @param width the width to set
     */
    public void setWidth(int width) {
        this.width = width;
    }
    
}
